<template>
  <div class="gonggefu" v-if="this.$store.state.arr.length!==0">
      <!-- <Gongezi v-for="(v,i) in arr" :key=i :imgurl="v.imgurl"/> -->
  
    <Gongezi v-for="(v,i) in this.$store.state.arr" :key="i" :imgurl="v.imgurl" :add="v.add"/>
   
  </div>

</template>

<script>
import Gongezi from "./gonggezi.vue"
export default {
    data(){
        return{
            arr:[]
        }
    },
    components:{
        Gongezi
    },
    beforeCreate(){
        this.$store.dispatch("listdate")
    }
}
</script>

<style lang="scss" >
    .gonggefu{
        width: 100%;
        height: 1.28rem;
        background-color: darkgray;
        display: flex;
        flex-wrap: wrap;
    }
</style>